/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: xiaotutu
 * Date: 2023-10-19
 * Time: 11:48
 */

class Animal {

}

class Dog {
    private String name;
    private int age;
    private double weight;

    public void eat() {
        System.out.println(this.name + " 在吃饭!");
    }

    public void sleep() {
        System.out.println(this.name + " 在睡觉!");
    }

    public void bark() {
        System.out.println(this.name + " 汪汪汪!");
    }

}

class Cat {
    private String name;
    private int age;
    private double weight;

    public void eat() {
        System.out.println(this.name + " 在吃饭!");
    }

    public void sleep() {
        System.out.println(this.name + " 在睡觉!");
    }

    public void mew() {
        System.out.println(this.name + " 喵喵喵!");
    }
}


public class Test {
    public static void main(String[] args) {

    }
}
